package com.ceair.flight.refund.dto.appmoblie;

import java.io.Serializable;
import java.util.Objects;

public class PaxVO implements Serializable {

    private String paxid;
    private String paxName;//全名
    /**
     * ADT 成人;CHD 儿童;INF 婴儿
     */
    private String paxType;
    /**
     * NI 身份证;PP 护照;ID 其他证件
     */
    private String idType;
    /**
     * 证件号
     */
    private String idNo;
    /**
     * 生日
     */
    private String birthday;
    /**
     * 票号，联票用逗号分隔
     */
    private String ticketNo;
    /**
     * 婴儿携带人paxid
     */
    private String infCarrierId;

    public String getPaxid() {
        return paxid;
    }

    public void setPaxid(String paxid) {
        this.paxid = paxid;
    }

    public String getPaxName() {
        return paxName;
    }

    public void setPaxName(String paxName) {
        this.paxName = paxName;
    }

    public String getPaxType() {
        return paxType;
    }

    public void setPaxType(String paxType) {
        this.paxType = paxType;
    }

    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getTicketNo() {
        return ticketNo;
    }

    public void setTicketNo(String ticketNo) {
        this.ticketNo = ticketNo;
    }

    public String getInfCarrierId() {
        return infCarrierId;
    }

    public void setInfCarrierId(String infCarrierId) {
        this.infCarrierId = infCarrierId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PaxVO paxVO = (PaxVO) o;
        return paxid.equals(paxVO.paxid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(paxid) + Objects.hash(paxName) + Objects.hash(paxType);
    }
}
